package service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import acttest.dao.UserDao;
import acttest.entity.User;
import service.UserService;

@Service
public class UserServiceImpl implements UserService{
	@Resource
	UserDao userDao;

	@Override
	public List<User> queryUser(String sql) {
		return userDao.query(sql,User.class);
	}

	@Override
	public void addUser(User user) {
		userDao.persist(user);
	}
}
